package turing.forum.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;
import turing.forum.repository.po.User;
import turing.forum.repository.po.UserShare;

import java.util.List;

@Service
public interface IShareService {
    /**
     * 列出用户的分享
     * @param user
     * @return
     */
    Page<UserShare> listShares(User user, Integer pageNum, Integer pageSize);

    /**
     * 删除分享
     * @param share
     * @return
     */
    UserShare deleteShare(UserShare share);

    /**
     * 查询分享详情
     * @param share
     * @return
     */
    UserShare queryShare(UserShare share);

    /**
     * 用户分享
     * @param share
     * @return
     */
    UserShare addShare(UserShare share);
}
